/*
** xfunc2.c for xfunc in /home/vriely/Dropbox/work/Unix/Zappy_rendu/serv-src
**
** Made by Samuel Vrielynck
** Login   <vriely_s@epitech.net>
**
** Started on  Sun Jul 15 19:13:40 2012 Samuel Vrielynck
** Last update Thu Jul 19 18:22:59 2012 pierrick druart
*/

#include	<unistd.h>
#include	<stdio.h>

int		xread(int fd, void *buf, size_t size)
{
  int		ret;

  if ((ret = read(fd, buf, size)) == -1)
    perror("read()");
  return (ret);
}
